package be.ac.ua.comp.projectGPT.Jobs.implementations;

//~--- JDK imports ------------------------------------------------------------

import be.ac.ua.comp.projectGPT.Jobs.CallableJob;
import java.io.File;

public class FileCompareJob extends CallableJob {
    
    private String mFile1;
    private String mFile2;

    public FileCompareJob(String file1, String file2) {
        mFile1 = file1;
        mFile2 = file2;
    }

    public Object call() {

        logger.info("Starting");

        File file1 = new File(mFile1);
        File file2 = new File(mFile2);

        logger.info("Ending");

        // Compare two files.
        setChanged();
        return (file1.compareTo(file2));

    }
}
